#ifndef STATUSWINDOW_H
#define STATUSWINDOW_H

#include <QMainWindow>
#include <QTextEdit>
#include <QLineEdit>
#include <QPushButton>
#include <QComboBox>
#include <QDomDocument>
#include <QLabel>
#include <QBoxLayout>
#include <QTableWidget>
#include <QDomDocument>
#include <qtimer.h>
#include <QtSvg>


#include "Bridget.h"
#include "Product.h"
#include "CountActivity.h"


class StatusWindow : public QWidget
{
    Q_OBJECT

private:
    QWidget* centralWidget;
    QLabel* statusDay;
    QLabel* BMI;
   // QLabel* statusBMI;
    QLabel* trackEat;
    QLabel* Eat;
    QLabel* statusEat;
    QLabel* trackActivity;
    QLabel* Activity;
    QLabel* statusActivity;
    QLabel* statusLbl;
    QLabel* controlEat;
    QLabel* controlActivity;
    QLabel* general;
    QLabel* ball;
    QLabel* metabolism;
    QLabel* ltimer;
    QDomDocument docJournal;

    QSvgWidget* svgB;
    QSvgWidget* svgE;
    QSvgWidget* svgA;

    QString fileNorm;
    QString fileMiddle;
    QString fileBad;

    QTime curTime;
    QTimer* totalTimer;
    QTimer* ptimer;
    QTableWidget* tbl;
    QTableWidget* tbl2;
    Bridget bd;



    CountActivity * count;
   // LoginWidget * login;

//    Product *allFood;



public:
    StatusWindow(QWidget *parent = 0/*, Product *allFood1=0*/);
    ~StatusWindow() {};

    void setEating();
    void setFitnessCosts();
 //   void updateStatus(/*Product *allFood1/int weight1, int growth1, int age1, bool female1, double activity1*/);
    Bridget *getBd();


    double getYesterdayEnergy();
    double getEveningEnergy(int lim);

public slots:
    void setColorTrackEat();
    void setColorTrackActivity();
    void updateStatus();
//    void slotUpdateTimer();


};


#endif // STATUSWINDOW_H
